package com.rayo.accesscontrollercopy.utils;

import android.content.Context;

import com.rayo.accesscontrollercopy.R;


/**
 * Created by lyc-pc on 17/4/12.
 */

public class KeyEventTypeUtils {
    public static String getResult(Context context,int event){
        String str="";
        switch (event){
            case (byte)1:
                str=context.getString(R.string.open_successfully1);
                break;
            case (byte)2:
                str=context.getString(R.string.setting_lock_id_successfully);
                break;
            case (byte)3:
                str=context.getString(R.string.setting_lock_id_failed);
                break;
            case (byte)4:
                str=context.getString(R.string.out_of_the_validity_date);
                break;
            case (byte)5:
                str=context.getString(R.string.no_authority_to_open);
                break;
            case (byte)6:
                str=context.getString(R.string.out_of_the_timezone);
                break;
            case (byte)7:
                str=context.getString(R.string.system_code_error);
                break;
            case (byte)8:
                str=context.getString(R.string.the_user_is_in_black_list);
                break;
            case (byte)49:
                break;
            case (byte)50:
                break;
            case (byte)51:
                break;
            case (byte)52:
                break;
            case (byte)53:
                break;
            case (byte)54:
                break;
            case (byte)55:
                break;
            case (byte)56:
                break;
            case (byte)97:
                str=context.getString(R.string.open_successfully_by_card);
                break;
            case (byte)98:
                str=context.getString(R.string.setting_lock_id_successfully_by_card);
                break;
            case (byte)99:
                str=context.getString(R.string.setting_lock_id_failed_by_card);
                break;
            case (byte)100:
                str=context.getString(R.string.out_of_the_validity_date_by_card);
                break;
            case (byte)101:
                str=context.getString(R.string.no_authority_to_open_by_card);
                break;
            case (byte)102:
                str=context.getString(R.string.out_of_the_timezone_by_card);
                break;
            case (byte)103:
                str=context.getString(R.string.system_code_error_by_card);
                break;
            case (byte)104:
                str=context.getString(R.string.the_user_is_in_black_list_by_card);
                break;
            case (byte)-111:
                break;
            case (byte)-110:
                break;
            case (byte)-109:
                break;
            case (byte)-108:
                break;
            case (byte)-107:
                break;
            case (byte)-106:
                break;
            case (byte)-105:
                break;
            case (byte)-104:
                break;
            default:
                str=context.getString(R.string.unknow_user)+"("+event+""+")";
                break;
        }
        return str;
    }

}
